package com.king.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.king.search.mq.PostMQIndexMessage;
import com.king.vo.MPostVo;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface SearchService {
    IPage search(Page page, String keyword);

    long initESData(List<MPostVo> records);

    void createOrUpdateIndex(PostMQIndexMessage message);

    void removeIndex(PostMQIndexMessage message);
}
